package com.itee.supermarket.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.itee.supermarket.dao.EmployeeDao;
import com.itee.supermarket.domain.Employee;

public class EmployeeDaoImpl extends HibernateDaoSupport implements EmployeeDao{
	public List<Employee> getUser(Employee employee)
	{
		return (List<Employee>)getHibernateTemplate()
				.find("from Employee e where e.employeeId like ? and e.passWd like ? and e.permissions like ?"
						, employee.getEmployeeId(),employee.getPassWd(),employee.getPermissions());
	}
}
